package com.agrm.model.brand.pojo;

import com.agrm.model.common.dtos.BaseModel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;


@TableName("brand")
@Getter
@Setter
public class Brand extends BaseModel implements Serializable {

    @TableId(value = "id" , type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("company")
    private String company;

    @TableField("logo")
    private String logo;

    @TableField("site")
    private String site;

    @TableField("description")
    private String description;

    @Override
    public String toString() {
        return "Brand{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", company='" + company + '\'' +
                ", logo='" + logo + '\'' +
                ", site='" + site + '\'' +
                ", description='" + description + '\'' +
                '}';
    }
}
